﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using NHibernate.Cfg;
using Stock.Models.Classes;
using NHibernate.Tool.hbm2ddl;
using NHibernate;

namespace Stock
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
            /*
                       var product = new Product
                       {
                           Name = "Some C# Book",
                           Price = 500,
                       };

                       // And save it to the database

                       IQuery q = sess.CreateQuery("FROM Product");
                       var list = q.List<Product>();

                       // List all the entries' names
                       list.ToList().ForEach(p => Console.WriteLine(p.Name));
                   }*/
        }
    }
}